import request from "../request";
export default {
    //获取轮播图数据
    getCarousel(data={}){
        return request({
            url: "/api/resources/carousel",
            method: "POST",
            data: data
        })
    },
    //获取各类商品数据 data={"categoryName":"保护套"}
    getPromoProduct(data={}){
        return request({
            url: "/api/product/getPromoProduct",
            method: "POST",
            data: data
        })
    },
    //获取热门商品数据 data={"categoryName":["保护套","保护膜","充电器","充电宝"]}
    getHotProduct(data={}){
        return request({
            url: "/api/product/getHotProduct",
            method: "POST",
            data: data
        })
    }
}